package com.xdap.pg.exam.entity;

import com.definesys.mpaas.query.annotation.*;

import java.util.Date;
import java.util.Objects;

@Table("test_paper")
@Style(Upper2Underline = true)
public class Paper extends AbstractBasePojo implements java.io.Serializable {

    private static final long serialVersionUID = 8830865378597683091L;

    /**
     * 试卷编号
     */
    @Column("paper_code")
    private String paperCode;

    /**
     * Site Name
     */
    @Column("paper_site")
    private String paperSite;

    /**
     * 填写环境
     */
    @Column("paper_environment")
    private String paperEnvironment;

    /**
     * 填入日期
     */
    @Column("paper_date")
    private Date paperDate;

    public Paper() {
    }

    public String getPaperCode() {
        return paperCode;
    }

    public void setPaperCode(String paperCode) {
        this.paperCode = paperCode;
    }

    public String getPaperSite() {
        return paperSite;
    }

    public void setPaperSite(String paperSite) {
        this.paperSite = paperSite;
    }

    public String getPaperEnvironment() {
        return paperEnvironment;
    }

    public void setPaperEnvironment(String paperEnvironment) {
        this.paperEnvironment = paperEnvironment;
    }

    public Date getPaperDate() {
        return paperDate;
    }

    public void setPaperDate(Date paperDate) {
        this.paperDate = paperDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Paper paper = (Paper) o;
        return Objects.equals(paperCode, paper.paperCode) && Objects.equals(paperSite, paper.paperSite) && Objects.equals(paperEnvironment, paper.paperEnvironment) && Objects.equals(paperDate, paper.paperDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(paperCode, paperSite, paperEnvironment, paperDate);
    }

    @Override
    public String toString() {
        return "Paper{" +
                "paperCode='" + paperCode + '\'' +
                ", paperSite='" + paperSite + '\'' +
                ", paperEnvironment='" + paperEnvironment + '\'' +
                ", paperDate=" + paperDate +
                '}';
    }
}
